using System;
using System.ComponentModel;
using System.Linq;

using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace ApiTest2.Entitys
{
    /// <summary>
    /// 登录日志
    /// </summary>  
    /// <remarks>
    /// <![CDATA[ENGINE=InnoDB  COMMENT='登录日志']]>
    /// </remarks>
    [DbSource("Default"), Serializable]
    public class LogLogin
    {
        /// <summary>
        /// log_id
        /// </summary>
        /// <remarks>
        /// <![CDATA[bigint NOT NULL COMMENT '']]>
        /// </remarks>
        [Primary(Automatic = true)]
        public long LogId { get; set; }

        /// <summary>
        /// user_name
        /// </summary>
        /// <remarks>
        /// <![CDATA[varchar(255) DEFAULT NULL COMMENT '']]>
        /// </remarks>
        [Column(255)]
        public string UserName { get; set; }

        /// <summary>
        /// ip
        /// </summary>
        /// <remarks>
        /// <![CDATA[varchar(255) DEFAULT NULL COMMENT '']]>
        /// </remarks>
        [Column(255)]
        public string Ip { get; set; }

        /// <summary>
        /// 是否成功
        /// </summary>
        /// <remarks>
        /// <![CDATA[bit(1) NOT NULL COMMENT '是否成功']]>
        /// </remarks>
        [Column(1, false)]
        [DisplayName("是否成功")]
        public bool IsSuccess { get; set; }

        /// <summary>
        /// 失败原因
        /// </summary>
        /// <remarks>
        /// <![CDATA[varchar(255) DEFAULT NULL COMMENT '失败原因']]>
        /// </remarks>
        [Column(255)]
        [DisplayName("失败原因")]
        public string FailMsg { get; set; }

        /// <summary>
        /// create_date
        /// </summary>
        /// <remarks>
        /// <![CDATA[int NOT NULL COMMENT '']]>
        /// </remarks>
        [Column(false)]
        public int CreateDate { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        /// <remarks>
        /// <![CDATA[datetime NOT NULL COMMENT '创建时间']]>
        /// </remarks>
        [Column(false)]
        [DisplayName("创建时间")]
        public DateTime CreateTime { get; set; }

    }
}
